home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / GMS / Includes / games / tasks.i < prev    next >
Encoding:
Text File  |  1997-05-03  |  1.6 KB  |  53 lines

  1.     IFND GMS_TASKS_I
  2. GMS_TASKS_I  SET  1
  3.  
  4. **
  5. **    $VER: tasks.i V0.6B
  6. **
  7. **      (C) Copyright 1996-1997 DreamWorld Productions.
  8. **          All Rights Reserved
  9. **
  10.  
  11.     IFND    EXEC_TYPES_I
  12.     include 'exec/types.i'
  13.     ENDC
  14.  
  15. *****************************************************************************
  16. * This task structure is lodged into tc_UserData (see exec/tasks.i), so
  17. * you may not change that field when using GMS.  A new UserData field exists
  18. * here which you can use if necessary.
  19.  
  20. GTV1 = ("GT"<<16)|00
  21.  
  22.     STRUCTURE    GMSTask,0
  23.     ULONG    GT_VERSION         ;GTV1
  24.     ULONG    GT_Stats           ;Private.
  25.     APTR    GT_UserData        ;Pointer to user data, no restrictions.
  26.     APTR    GT_TaskName        ;Name of the task if specified. (READ ONLY)
  27.  
  28.     * Private fields start now *
  29.  
  30.     APTR    GT_GeneralPrefs    ;Library preferences.
  31.     APTR    GT_ScreenPrefs     ;Screen preferences.
  32.     APTR    GT_SoundPrefs      ;Sound preferences.
  33.     APTR    GT_BlitterPrefs    ;Blitter preferences.
  34.     APTR    GT_ResourceChain   ;The resource chain, private.
  35.     ULONG    GT_ReqStatus       ;Used internally.
  36.     ULONG    GT_BlitKey         ;Used to store resource key.
  37.     ULONG    GT_AudioKey        ;Used to store resource key.
  38.     ULONG    GT_ExecNode        ;Task's exec node.
  39.     APTR    GT_DestructStack   ;Pointer to self destruct exit stack.
  40.     APTR    GT_DestructCode    ;Pointer to self destruct exit code.
  41.     BYTE    GT_AlertState      ;On/Off.
  42.     BYTE    GT_Switched        ;Set if task is in Switch().
  43.     UWORD    GT_DebugStep       ;Debug tree stepping position.
  44.     UBYTE    GT_AwakeSig        ;Signal for waking this task.
  45.     UBYTE    GT_Pad             ;Reserved.
  46.     LABEL    GT_SIZEOF
  47.  
  48. CS_OCS =    0
  49. CS_ECS =    1
  50. CS_AGA =    2
  51.  
  52.   ENDC    ;GMS_TASKS_I
  53.